package com.day0929.Computer;

public class Computer{
    private Cpu cpu;
    private Ems ems;
    private HardDisk hardDisk;

    public Computer(Cpu cpu, Ems ems, HardDisk hardDisk) {
        this.cpu = cpu;
        this.ems = ems;
        this.hardDisk = hardDisk;
    }
    public void show(){
        System.out.println("Cpu品牌：" + this.cpu.getCpuBrand() + ",Cpu主频：" + this.cpu.getBasicFrequency());
        System.out.println("Ems品牌：" + this.ems.getEmsType() + ",Ems容量：" + this.ems.getEmsVolume());
        System.out.println("HardDisk容量：" + hardDisk.getHardDiskVolume());
    }
}
